package cn.smile.bean.entity.core;

import cn.smile.commons.domain.BaseDomain;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author 龙逸
 * @since 2022-04-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("file_upload")
public class FileUpload extends BaseDomain {
    @Serial
    private static final long serialVersionUID = -1961705768038650598L;
    /**
     * 原文件名
     */
    private String oldFileName;

    /**
     * 新文件名
     */
    private String newFileName;

    /**
     * 文件上传时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private LocalDateTime uploadTime;

    /**
     * 文件上传用户ID
     */
    private String uploadUserId;

    /**
     * 文件上传用户名
     */
    private String uploadUserName;

    /**
     * Minio存储文件桶
     */
    private String bucketName;

    /**
     * 文件下载地址
     */
    private String downloadUrl;
}